<template>
    <div>
        <commons-menu></commons-menu>
        <add-product></add-product>
    </div>
</template>

<script>
import CommonsMenu from '@/components/CommonsMenu.vue';
import AddProduct from '@/components/Addproduct.vue'; 

export default {
    name: 'AddProductView', 
    components: {
        CommonsMenu,
        AddProduct // 注册添加商品组件
    },
    created() {
        this.$store.commit('setShowPage', 2); 
    }
};
</script>

<style>
</style>